<!--
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-12 11:47:59
 * @LastEditTime: 2019-09-12 17:27:38
 * @LastEditors: Please set LastEditors
 -->
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
    <f:layout name="Default" />

    This template displays a NEW form for the current domain object.

    If you modify this template, do not forget to change the overwrite settings
    in /Configuration/ExtensionBuilder/settings.yaml:
    Resources:
    Private:
    Templates:
    New.html: keep

    Otherwise your changes will be overwritten the next time you save the extension in the extension builder

    <f:section name="content">

	<script type="text/javascript" src="typo3conf/ext/backsite/Resources/Public/Ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="typo3conf/ext/backsite/Resources/Public/Ueditor/ueditor.all.min.js"></script>
	<script type="text/javascript" src="typo3conf/ext/backsite/Resources/Public/Ueditor/lang/zh-cn/zh-cn.js"></script>

    <link rel="stylesheet" type="text/css" href="{f:uri.resource(path:'Css/style.css')}" />
    <script type="text/javascript" src="{f:uri.resource(path:'JavaScript/jquery.validate.min.js')}"></script>
    <script type="text/javascript" src="{f:uri.resource(path:'JavaScript/messages_zh.js')}"></script>

    <link rel="stylesheet" type="text/css" href="{f:uri.resource(path:'Css/bootstrap-timepicker.min.css')}" />
    <script type="text/javascript" src="{f:uri.resource(path:'JavaScript/bootstrap-timepicker.min.js')}"></script>
        <style>
            h1{margin-bottom: 15px;}
        </style>
        <h1 class="text-center">{activity.name}<f:if condition="{flag}=='checkin'">
            <f:then>签到</f:then>
            <f:else>报名</f:else>
        </f:if></h1>

        <f:flashMessages />

        <f:render partial="FormErrors" />

        <f:form action="update" name="signup" object="{signup}" id="signValidate">
            <div class="form-group">
                <label class="control-label" for="name">姓名:<font color="red">*</font></label>
                <f:form.textfield name="name" class="form-control" />
            </div>
            <div class="form-group">
                <label class="control-label" for="telephone">电话:<font color="red">*</font></label>
                <f:form.textfield name="telephone" class="form-control" />
            </div>
            <f:form.hidden name="actid" value="{activity.uid}" />
            <f:form.hidden name="flag" value="{flag}" />
            <div class="text-center">
                <f:form.submit value="提交" class="btn btn-success"/>
            </div>
        </f:form>
        <script type="text/javascript" src="{f:uri.resource(path:'JavaScript/com.js?123456789')}"></script>
    </f:section>

</html>